﻿function mailkontrol(str,divname) {
  
    if (str.length === 0) {
        document.getElementById(divname).innerHTML = "";
      
        return;
    }
    if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp = new XMLHttpRequest();
    }
    else {// code for IE6, IE5
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlhttp.onreadystatechange = function () {
        if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
        
            document.getElementById(divname).innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.open("GET", "AjaxQuery/userctrl.aspx?q=" + str, true);
    xmlhttp.send();
}


function icerikgetir(page) {

   
    
    if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp = new XMLHttpRequest();
    }
    else {// code for IE6, IE5
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlhttp.onreadystatechange = function () {
        if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
           
            document.getElementById('ajaxcontent').innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.open("GET", page, true);
    xmlhttp.send();
}

function icerikgetir2(page) {



    if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp = new XMLHttpRequest();
    }
    else {// code for IE6, IE5
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlhttp.onreadystatechange = function () {
        if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {

            document.getElementById('ajaxcontent2').innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.open("GET", page, true);
    xmlhttp.send();
}


function teammember(page) {



    if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp = new XMLHttpRequest();
    }
    else {// code for IE6, IE5
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlhttp.onreadystatechange = function () {
        if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {

            document.getElementById('teammemplus').innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.open("GET", 'AjaxQuery/teammember.aspx', true);
    xmlhttp.send();
}

function sifreuzunluk(str, divname) {

    if (str.length === 0) {
        document.getElementById(divname).innerHTML = "";

        return;
    }
    if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp = new XMLHttpRequest();
    }
    else {// code for IE6, IE5
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlhttp.onreadystatechange = function () {
        if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {

            document.getElementById(divname).innerHTML = xmlhttp.responseText;
        }
    }
    xmlhttp.open("GET", "userctrl.aspx?a=" + str, true);
    xmlhttp.send();
}